package com.ngkj.zmfptCommon.common.util;

import java.io.Serializable;

/**
 * @author ChenHN
 * @since 2021/10/26 creation
 **/
public enum ResultEnum {
    ok(200,"操作成功"),
    error(400,"操作出错"),
    notLoggedIn(401,"未登录"),
    notAuth(403,"未授权"),
    tokenExpired(406,"Token过期"),
    tokenFailure(406,"Token失效"),
    usernameNoFound(500,"用户名不存在"),
    errorPassword(500,"用户名密码不正确"),
    loginError(500,"登录失败");

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    int code;
    String message;

    ResultEnum(int code,String message){
     this.code = code;
     this.message = message;
    }

}
